home *** CD-ROM | disk | FTP | other *** search
- *** 42.1 1994/01/16 14:05:22
- --- libgcc2.c 1994/02/10 11:38:10
- ***************
- *** 60,66 ****
- #include <stddef.h>
- #endif
-
- ! #if 1
- /* Define for XFmode extended real floating point support. */
- #define LONG_DOUBLE_TYPE_SIZE 96
- #else
- --- 60,66 ----
- #include <stddef.h>
- #endif
-
- ! #if defined(XFLOAT_ENABLE) && (__GNUC__ > 2 || __GNUC_MINOR__ >= 4)
- /* Define for XFmode extended real floating point support. */
- #define LONG_DOUBLE_TYPE_SIZE 96
- #else
- *** 42.1 1994/01/16 14:05:22
- --- longlong.h 1994/01/28 16:28:12
- ***************
- *** 411,444 ****
- : "=d" ((USItype)(count)) \
- : "od" ((USItype)(x)), "n" (0))
- #else /* not mc68020 */
- - /* %/ inserts REGISTER_PREFIX. */
- #define umul_ppmm(xh, xl, a, b) \
- __asm__ ("| Inlined umul_ppmm
- ! movel %2,%/d0
- ! movel %3,%/d1
- ! movel %/d0,%/d2
- ! swap %/d0
- ! movel %/d1,%/d3
- ! swap %/d1
- ! movew %/d2,%/d4
- ! mulu %/d3,%/d4
- ! mulu %/d1,%/d2
- ! mulu %/d0,%/d3
- ! mulu %/d0,%/d1
- ! movel %/d4,%/d0
- ! eorw %/d0,%/d0
- ! swap %/d0
- ! addl %/d0,%/d2
- ! addl %/d3,%/d2
- jcc 1f
- ! addl #65536,%/d1
- ! 1: swap %/d2
- ! moveq #0,%/d0
- ! movew %/d2,%/d0
- ! movew %/d4,%/d2
- ! movel %/d2,%1
- ! addl %/d1,%/d0
- ! movel %/d0,%0" \
- : "=g" ((USItype)(xh)), \
- "=g" ((USItype)(xl)) \
- : "g" ((USItype)(a)), \
- --- 411,443 ----
- : "=d" ((USItype)(count)) \
- : "od" ((USItype)(x)), "n" (0))
- #else /* not mc68020 */
- #define umul_ppmm(xh, xl, a, b) \
- __asm__ ("| Inlined umul_ppmm
- ! movel %2,d0
- ! movel %3,d1
- ! movel d0,d2
- ! swap d0
- ! movel d1,d3
- ! swap d1
- ! movew d2,d4
- ! mulu d3,d4
- ! mulu d1,d2
- ! mulu d0,d3
- ! mulu d0,d1
- ! movel d4,d0
- ! eorw d0,d0
- ! swap d0
- ! addl d0,d2
- ! addl d3,d2
- jcc 1f
- ! addl #65536,d1
- ! 1: swap d2
- ! moveq #0,d0
- ! movew d2,d0
- ! movew d4,d2
- ! movel d2,%1
- ! addl d1,d0
- ! movel d0,%0" \
- : "=g" ((USItype)(xh)), \
- "=g" ((USItype)(xl)) \
- : "g" ((USItype)(a)), \
- *** /dev/null Sun Feb 13 06:18:10 1994
- --- AUTHORS Sun Feb 13 05:42:26 1994
- ***************
- *** 0 ****
- --- 1,36 ----
- + This is a list, in no particular order, of people who have directly or
- + indirectly contributed to the MiNT library. Please send corrections to
- + entropy.
- +
- + entropy@terminator.rs.itd.umich.edu (entropy) (MiNT library maintainer)
- + bammi@cadence.com (Jwahar Bammi) (tos-gcc library maintainer)
- + ersmith@netcom.com (Eric R. Smith)
- + hohmuth@freia.inf.tu-dresden.de (Michael Hohmuth)
- + pvt1-117@nada.kth.se
- + dsb@cs.duke.edu (Scott Bigham)
- + schwab@ls5.informatik.uni-dortmund.de (Andreas Schwab)
- + hyc@hanauma.Jpl.Nasa.Gov (Howard Chu)
- + nox@jelal.north.de (Juergen Lock)
- + boender@dutiws.twi.tudelft.nl (Hildo Biersma)
- + roemer@informatik.uni-frankfurt.de (Kay Roemer)
- + Dirk_Haun@wi2.maus.de (Dirk Haun)
- + Bjarne_Pohlers@ms2.maus.de (Bjarne Pohlers)
- + Cristof_Stadler@s2.maus.de (Cristof Stadler)
- + Frank_Baumgart@pb.maus.de (Frank Baumgart)
- + Frank_Rossien@s2.maus.de (Frank Rossien)
- + Jan-Hinrich_Fessel@un.maus.de (Oskar)
- + Markus_Kilbinger@ac.maus.de (Markus Kilbinger)
- + NTOMCZAK@vm.ucs.UAlberta.CA (Michal Jaegermann)
- + Ole_Arndt@f.maus.de (Ole Arndt)
- + Robert.Wilhelm@Physik.TU-Muenchen.DE (Robert Wilhelm)
- + rwilhelm@physik.tu-muenchen.de (Robert Wilhelm)
- + Ulf_Moeller@hh2.maus.de (Ulf Moeller)
- + ulf@wolfhh.hanse.de
- + Uwe_Ohse@pb2.maus.de (Uwe Ohse)
- + dc4i@br0.hrz.th-darmstadt.de (Stefan Steyer)
- + kuehn@goedel.uni-muenster.de (Ulrich Kuehn)
- + shenson@nyx.cs.du.edu (Stephen Henson)
- + sjg@phlem.ph.kcl.ac.uk (Simon Gornall)
- + warwick@cs.uq.oz.au
- + LUX%DHDIBM1.BITNET@vm.gmd.de (Wolfgang Lux)
- + mk@anuurn.do.open.de (Martin Koehling)
- *** 42.1 1994/01/16 14:05:22
- --- Changelog 1994/02/13 09:36:12
- ***************
- *** 4,9 ****
- --- 4,92 ----
- Changes are listed in *reverse* order, most recent changes being
- first.
-
- + PATCHLEVEL43::
- +
- + ***** libgcc2.c
- + ----------------------------
- + revision 42.3
- + date: 1994/02/10 11:38:42; author: entropy; state: Exp; lines: +1 -1
- + Only use XFmode extended real floating point if XFLOAT_ENABLE is defined.
- + ----------------------------
- + revision 42.2
- + date: 1994/01/28 16:30:08; author: schwab; state: Exp; lines: +1 -1
- + Don't try to use extended float mode (XFmode) with gcc before version 2.4.
- + Actually, this will also exclude gcc 2.4, since __GNUC_MINOR__ was
- + introduced just with gcc 2.5.
- + =============================================================================
- + ***** longlong.h
- + ----------------------------
- + revision 42.2
- + date: 1994/01/28 16:30:30; author: schwab; state: Exp; lines: +24 -25
- + Revert the last change, we don't need a register prefix.
- + =============================================================================
- + ***** include/PatchLev.h
- + ----------------------------
- + revision 42.2
- + date: 1994/01/16 15:03:48; author: entropy; state: Exp; lines: +1 -1
- + -
- + =============================================================================
- + ***** include/assert.h
- + ----------------------------
- + revision 42.2
- + date: 1994/02/12 00:01:04; author: entropy; state: Exp; lines: +14 -14
- + Add back old statement-based assert macro, but now called __assert().
- + =============================================================================
- + ***** include/osbind.h
- + ----------------------------
- + revision 42.2
- + date: 1994/02/10 08:05:26; author: entropy; state: Exp; lines: +2 -2
- + Relax constraints from "r" to "g" on trap_14_wllwwwwwlw (used
- + by Flopfmt()).
- + =============================================================================
- + ***** Makefile
- + ----------------------------
- + revision 42.2
- + date: 1994/02/10 11:43:04; author: entropy; state: Exp; lines: +4 -1
- + *** empty log message ***
- + =============================================================================
- + ***** dup.c
- + ----------------------------
- + revision 42.2
- + date: 1994/01/18 16:19:40; author: entropy; state: Exp; lines: +0 -6
- + Remove the code from dup() that could set the controlling tty.
- + It was wrong.
- + =============================================================================
- + ***** open.c
- + ----------------------------
- + revision 42.2
- + date: 1994/01/18 16:15:50; author: entropy; state: Exp; lines: +18 -11
- + Several changes by Wolfgang Lux and entropy.
- + 1. Grab the lowest-numbered handle for all opens, instead of depending
- + on O_NOCTTY.
- + 2. Make the code dealing with controlling tty's a little bit more POSIXy.
- + =============================================================================
- + ***** read.c
- + ----------------------------
- + revision 42.2
- + date: 1994/01/18 14:51:26; author: entropy; state: Exp; lines: +14 -2
- + Oops! When I fixed read() to work under TOS in unbuffered mode, I
- + broke it for buffered mode. This revision should work in both modes.
- + Thanks to dsb for the bug report.
- + =============================================================================
- + ***** scanf.c
- + ----------------------------
- + revision 42.2
- + date: 1994/02/10 08:21:28; author: schwab; state: Exp; lines: +3 -3
- + The private variables fp_{do,ns,sval} are not intended to be exported
- + and should be made static.
- + =============================================================================
- + ***** sync.c
- + ----------------------------
- + revision 42.2
- + date: 1994/02/10 08:09:22; author: entropy; state: Exp; lines: +1 -25
- + Removed RCS header junk that was causing patches to get mangled.
- + =============================================================================
- +
- PATCHLEVEL42::
-
- ***** abs.c
- *** 42.1 1994/01/16 14:05:22
- --- Files 1994/02/10 08:45:40
- ***************
- *** 37,65 ****
- wcscmp.c wcscpy.c wcslen.c wnull.c \
-
- MINTLIB= \
- ! GMakefile.16 GMakefile.32 GNUGPL2 Makefile alarm.c \
- ! atexit.c cfspeed.c clock.c close.c console.c \
- ! crt0.cpp crtinit.c dirent.c dup.c exec.c \
- ! execp.c fcntl.c fopenp.c fork.c fscanf.c \
- ! getcwd.c getdtabl.c getgroup.c gethostn.c getpages.c \
- ! getrusag.c heapbase.c ident.c inistack.c initsig.c \
- ! ioctl.c isatty.c kill.c killpg.c link.c \
- ! lockf.c main.c mincl mkdir.c mkfifo.c \
- ! mknod.c nice.c open.c osbind.cpp pause.c \
- ! pipe.c popen.c putpwent.c read.c rename.c \
- ! rmdir.c scandir.c scanf.c select.c setrlimi.c \
- ! sigactio.c sigblock.c signal.c sleep.c spawn.c \
- ! spawnve.c spawnvp.c sscanf.c stat.c statfs.c \
- ! symlink.c sync.c sysconf.c tcattr.c tcbreak.c \
- ! tcdrain.c tcflow.c tcflush.c tcpgrp.c thread.c \
- ! times.c truncate.c ttyname.c uname.c unlink.c \
- ! unx2dos.c utmp.c vfork.cpp wait.c wait3.c \
- ! waitpid.c write.c wtmp.c \
-
- MINTLIB_NOCL= \
- ! Bugs Changelog Copyright Files MKDIFFS \
- ! MKLOG Makefile.adm OChangelog PatchLev.h README \
- ! Version \
-
- CRUFT= \
- gnuaux.c gnulib2.c \
- --- 37,64 ----
- wcscmp.c wcscpy.c wcslen.c wnull.c \
-
- MINTLIB= \
- ! Makefile alarm.c atexit.c cfspeed.c clock.c \
- ! close.c console.c crt0.cpp crtinit.c dirent.c \
- ! dup.c exec.c execp.c fcntl.c fopenp.c \
- ! fork.c fscanf.c getcwd.c getdtabl.c getgroup.c \
- ! gethostn.c getpages.c getrusag.c heapbase.c ident.c \
- ! inistack.c initsig.c ioctl.c isatty.c kill.c \
- ! killpg.c link.c lockf.c main.c mincl \
- ! mkdir.c mkfifo.c mknod.c nice.c open.c \
- ! osbind.cpp pause.c pipe.c popen.c putpwent.c \
- ! read.c rename.c rmdir.c scandir.c scanf.c \
- ! select.c setrlimi.c sigactio.c sigblock.c signal.c \
- ! sleep.c spawn.c spawnve.c spawnvp.c sscanf.c \
- ! stat.c statfs.c symlink.c sync.c sysconf.c \
- ! tcattr.c tcbreak.c tcdrain.c tcflow.c tcflush.c \
- ! tcpgrp.c thread.c times.c truncate.c ttyname.c \
- ! uname.c unlink.c unx2dos.c utmp.c vfork.cpp \
- ! wait.c wait3.c waitpid.c write.c wtmp.c \
-
- MINTLIB_NOCL= \
- ! AUTHORS Bugs Changelog Copyright Files \
- ! GMakefile.16 GMakefile.32 GNUGPL2 MKDIFFS MKLOG \
- ! Makefile.adm OChangelog PatchLev.h README Version \
-
- CRUFT= \
- gnuaux.c gnulib2.c \
- *** 42.1 1994/01/16 14:05:22
- --- PatchLev.h 1994/01/16 15:03:20
- ***************
- *** 3,6 ****
- * directory.
- */
-
- ! #define PatchLevel "42"
- --- 3,6 ----
- * directory.
- */
-
- ! #define PatchLevel "43"
- *** 42.1 1994/01/16 14:05:22
- --- Version 1994/01/16 15:03:26
- ***************
- *** 1 ****
- ! V=42
- --- 1 ----
- ! V=43
- *** 42.1 1994/01/16 14:05:22
- --- Makefile 1994/02/10 11:42:46
- ***************
- *** 61,66 ****
- --- 61,69 ----
- # Flags for extra 'long long' support under newer gcc's
- #LONGLONG=-DPRINTF_LONGLONG
-
- + # Flags for extra 'long double' support under newer gcc's
- + #XFLOAT=-DXFLOAT_ENABLE
- +
- # Additional options for compiling C code
-
- #XFLAGS := -I../co
- ***************
- *** 118,124 ****
- CFLAGS= $(CFFLAGS) $(FRAME) $(LONGLONG)
-
- # cflags for stuff that needs to be compiled with 32 bit ints
- ! CLFLAGS= $(COPTS) $(FRAME) $(DSHORT)
-
- # flags to $(CC) when it runs the assembler only
- ASFLAGS= -c
- --- 121,127 ----
- CFLAGS= $(CFFLAGS) $(FRAME) $(LONGLONG)
-
- # cflags for stuff that needs to be compiled with 32 bit ints
- ! CLFLAGS= $(COPTS) $(FRAME) $(DSHORT) $(XFLOAT)
-
- # flags to $(CC) when it runs the assembler only
- ASFLAGS= -c
- *** 42.1 1994/01/16 14:05:22
- --- dup.c 1994/01/18 16:19:22
- ***************
- *** 36,47 ****
- __open_stat[__OPEN_INDEX(handle)];
- }
- if (__mint) {
- - if (rv == 0) {
- - /* New controlling tty. */
- - (void) Fforce(-1, rv);
- - __open_stat[__OPEN_INDEX(-1)] =
- - __open_stat[__OPEN_INDEX(handle)];
- - }
- flags = (long)Fcntl(rv, (long)0, F_GETFD);
- (void)Fcntl(rv, flags & ~FD_CLOEXEC, F_SETFD);
- }
- --- 36,41 ----
- *** 42.1 1994/01/16 14:05:22
- --- open.c 1994/01/18 16:10:36
- ***************
- *** 145,153 ****
- return __SMALLEST_VALID_HANDLE - 1;
- }
- if (__mint) {
- - if (!(iomode & O_NOCTTY)) {
- /* Relocate the handle to the lowest positive numbered handle
- ! available, and possibly make it the new controlling tty.
- */
- fcbuf = Fcntl(rv, (long) 0, F_DUPFD);
- if (fcbuf >= 0) {
- --- 145,152 ----
- return __SMALLEST_VALID_HANDLE - 1;
- }
- if (__mint) {
- /* Relocate the handle to the lowest positive numbered handle
- ! available
- */
- fcbuf = Fcntl(rv, (long) 0, F_DUPFD);
- if (fcbuf >= 0) {
- ***************
- *** 157,178 ****
- } else {
- (void) Fclose((int) fcbuf);
- }
- - if (rv == 0) {
- - (void) Fforce(-1, rv);
- - __open_stat[__OPEN_INDEX(-1)] = __open_stat[__OPEN_INDEX(rv)];
- - }
- }
- ! }
- ! fcbuf = (long)Fcntl(rv, (long)0, F_GETFD);
- ! (void)Fcntl(rv, fcbuf & ~FD_CLOEXEC, F_SETFD);
- }
- if ((iomode & O_APPEND) && !(modemask & _REALO_APPEND))
- (void)Fseek(0L, rv, SEEK_END);
-
- /* Important side effect: isatty(rv) sets up flags under TOS */
- if (isatty(rv) && (!(iomode & O_NOCTTY)) && (!(isatty(-1)))) {
- ! (void) Fforce(-1, rv); /* new controlling tty */
- ! __open_stat[__OPEN_INDEX(-1)] = __open_stat[__OPEN_INDEX(rv)];
- }
-
- return(rv);
- --- 156,185 ----
- } else {
- (void) Fclose((int) fcbuf);
- }
- }
- ! /* clear the close-on-exec flag */
- ! fcbuf = (long)Fcntl(rv, (long)0, F_GETFD);
- ! (void)Fcntl(rv, fcbuf & ~FD_CLOEXEC, F_SETFD);
- }
- if ((iomode & O_APPEND) && !(modemask & _REALO_APPEND))
- (void)Fseek(0L, rv, SEEK_END);
-
- /* Important side effect: isatty(rv) sets up flags under TOS */
- if (isatty(rv) && (!(iomode & O_NOCTTY)) && (!(isatty(-1)))) {
- ! /* If the process is a session leader with no controlling tty,
- ! and the tty that was opened is not already the controlling
- ! tty of another process, the tty becomes the controlling tty
- ! of the process. Note that MiNT has no concept of a session
- ! leader so we really only check that it is a process group
- ! leader.
- ! */
- ! if ((!__mint)
- ! || ((Pgetpgrp() == Pgetpid())
- ! && (Fcntl(rv, &fcbuf, TIOCGPGRP) >= 0)
- ! && (fcbuf == 0))) {
- ! (void) Fforce(-1, rv); /* new controlling tty */
- ! __open_stat[__OPEN_INDEX(-1)] = __open_stat[__OPEN_INDEX(rv)];
- ! }
- }
-
- return(rv);
- *** 42.1 1994/01/16 14:05:22
- --- read.c 1994/01/18 14:52:42
- ***************
- *** 118,125 ****
- foo = (char *)buf;
- if (*foo == __tchars.t_eofc) /* EOF character? */
- return 0;
- ! if ((flags & CRMOD) && r && (foo[r - 1] == '\r')) {
- ! foo[r - 1] = '\n';
- Cconout('\n'); /* not quite right if fd != 0 */
- }
- }
- --- 118,137 ----
- foo = (char *)buf;
- if (*foo == __tchars.t_eofc) /* EOF character? */
- return 0;
- ! /* for multibyte reads terminated by a CR, we add
- ! the CR since TOS doesn't put it in for us
- ! */
- ! if ((r < size) && (foo[r - 1] != '\r'))
- ! {
- ! foo[r] = '\r';
- ! r++;
- ! }
- ! /* If the last char is a CR (either added above
- ! or read from a single-byte Fread()) we translate
- ! it according to the CRMOD setting
- ! */
- ! if ((flags & CRMOD) && r && (foo[r - 1] == '\r')) {
- ! foo[r - 1] = '\n';
- Cconout('\n'); /* not quite right if fd != 0 */
- }
- }
- *** 42.1 1994/01/16 14:05:22
- --- scanf.c 1994/02/10 08:19:36
- ***************
- *** 52,58 ****
- #define FC_SIGN 3
-
- /* given transition,state do what action? */
- ! const int fp_do[][NSTATE] = {
- {F_INT,F_INT,F_INT,
- F_FRAC,F_FRAC,
- F_EXP,F_EXP,F_EXP}, /* see digit */
- --- 52,58 ----
- #define FC_SIGN 3
-
- /* given transition,state do what action? */
- ! static const int fp_do[][NSTATE] = {
- {F_INT,F_INT,F_INT,
- F_FRAC,F_FRAC,
- F_EXP,F_EXP,F_EXP}, /* see digit */
- ***************
- *** 65,71 ****
- F_ESIGN,F_QUIT,F_QUIT}, /* see sign */
- };
- /* given transition,state what is new state? */
- ! const int fp_ns[][NSTATE] = {
- {FS_DIGS,FS_DIGS,FS_DIGS,
- FS_DD,FS_DD,
- FS_EDIGS,FS_EDIGS,FS_EDIGS}, /* see digit */
- --- 65,71 ----
- F_ESIGN,F_QUIT,F_QUIT}, /* see sign */
- };
- /* given transition,state what is new state? */
- ! static const int fp_ns[][NSTATE] = {
- {FS_DIGS,FS_DIGS,FS_DIGS,
- FS_DD,FS_DD,
- FS_EDIGS,FS_EDIGS,FS_EDIGS}, /* see digit */
- ***************
- *** 78,84 ****
- FS_ESIGN,0,0}, /* see sign */
- };
- /* which states are valid terminators? */
- ! const int fp_sval[NSTATE] = {
- 0,0,1,0,1,1,1,1
- };
- #endif
- --- 78,84 ----
- FS_ESIGN,0,0}, /* see sign */
- };
- /* which states are valid terminators? */
- ! static const int fp_sval[NSTATE] = {
- 0,0,1,0,1,1,1,1
- };
- #endif
-